package cn.com.lyj6851.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import cn.com.lyj6851.user.entity.Role;

/**
 * 〈功能简述〉<br>
 * 〈角色〉
 *
 */
public interface RoleMapper extends SuperMapper<Role>{
	@Select(value = "select role.* from system_role role,system_user_role ur where role.id=ur.role_id and ur.user_id=#{userId}")
	 List<Role> getRoleByUserId(String userId);
}